package com.woniuxy.dao.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 维修日志表
 * </p>
 *
 * @author Keep it simple
 * @since 2022-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RepairLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 报修编号
     */
    @TableField("repairNum")
    private String repairnum;

    /**
     * 操作
     */
    @TableField("repairState")
    private Integer repairstate;

    /**
     * 具体操作
     */
    @TableField("operName")
    private String opername;

    /**
     * 操作原由
     */
    @TableField("operReason")
    private String operreason;

    /**
     * 操作人
     */
    @TableField("operUser")
    private Integer operuser;

    /**
     * 操作时间
     */
    @TableField(value = "operDate",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime operdate;

    /**
     * 操作内容
     */
    @TableField("operContent")
    private String opercontent;


}
